<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>BIBLIO: /home/marco/workspace/biblio/src/testserv.c File Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />



</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">BIBLIO
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#define-members">Defines</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">/home/marco/workspace/biblio/src/testserv.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>codice server (test comsock)  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &lt;stdio.h&gt;</code><br/>
<code>#include &lt;stdlib.h&gt;</code><br/>
<code>#include &lt;string.h&gt;</code><br/>
<code>#include &lt;mcheck.h&gt;</code><br/>
<code>#include &quot;<a class="el" href="comsock_8h_source.html">comsock.h</a>&quot;</code><br/>
</div><table class="memberdecls">
<tr><td colspan="2"><h2><a name="define-members"></a>
Defines</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0240ac851181b84ac374872dc5434ee4"></a><!-- doxytag: member="testserv.c::N" ref="a0240ac851181b84ac374872dc5434ee4" args="" -->
#define&#160;</td><td class="memItemRight" valign="bottom"><b>N</b>&#160;&#160;&#160;8</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="testserv_8c.html#a5d5f33280e7f4781e07b91e74cbe358c">MAINSOCK</a>&#160;&#160;&#160;&quot;./tmp/normalepi.sck&quot;</td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="testserv_8c.html#aa21e38cecec86e6cbfa136c13fae2155">printMessage</a> (<a class="el" href="structmessage__t.html">message_t</a> *<a class="el" href="bibclient_8c.html#a1bac7c8cafc9909ba9c076214a6b0c0b">msg</a>)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="testserv_8c.html#a3c04138a5bfe5d72780bb7e82a18e627">main</a> (int argc, char **argv)</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>codice server (test comsock) </p>
<dl class="author"><dt><b>Author:</b></dt><dd>lso12 </dd></dl>
</div><hr/><h2>Define Documentation</h2>
<a class="anchor" id="a5d5f33280e7f4781e07b91e74cbe358c"></a><!-- doxytag: member="testserv.c::MAINSOCK" ref="a5d5f33280e7f4781e07b91e74cbe358c" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="testserv_8c.html#a5d5f33280e7f4781e07b91e74cbe358c">MAINSOCK</a>&#160;&#160;&#160;&quot;./tmp/normalepi.sck&quot;</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>nome server socket </p>

<p>Referenced by <a class="el" href="testserv_8c.html#a3c04138a5bfe5d72780bb7e82a18e627">main()</a>.</p>

</div>
</div>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="a3c04138a5bfe5d72780bb7e82a18e627"></a><!-- doxytag: member="testserv.c::main" ref="a3c04138a5bfe5d72780bb7e82a18e627" args="(int argc, char **argv)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="testserv_8c.html#a3c04138a5bfe5d72780bb7e82a18e627">main</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>argc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char **&#160;</td>
          <td class="paramname"><em>argv</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Main </p>

<p>References <a class="el" href="comsock_8c.html#a870654a1e9b336f13271a7cfa0836920">acceptConnection()</a>, <a class="el" href="structmessage__t.html#a670e35a55f39260aab8a626b6ba04e82">message_t::buffer</a>, <a class="el" href="comsock_8c.html#a730d0b220efe4930f0793030846efa52">closeConnection()</a>, <a class="el" href="comsock_8c.html#a36c68f60410ffdbb559bb256959def46">closeServerChannel()</a>, <a class="el" href="comsock_8c.html#ab4f598fd4b9d510f1feae85436ef9ebc">createServerChannel()</a>, <a class="el" href="structmessage__t.html#ae42a6394ce558e3e54470afd3862d9db">message_t::length</a>, <a class="el" href="testserv_8c.html#a5d5f33280e7f4781e07b91e74cbe358c">MAINSOCK</a>, <a class="el" href="comsock_8h.html#ad7871643c05865c80f5d8050aead2b57">MAXBUF</a>, <a class="el" href="bibclient_8c.html#a1bac7c8cafc9909ba9c076214a6b0c0b">msg</a>, <a class="el" href="comsock_8h.html#abe9a795da4c8ef9d50edace5ed7aa8af">MSG_QUERY</a>, <a class="el" href="testcli_8c.html#a0240ac851181b84ac374872dc5434ee4">N</a>, <a class="el" href="testserv_8c.html#aa21e38cecec86e6cbfa136c13fae2155">printMessage()</a>, <a class="el" href="comsock_8c.html#a7342cc411ed1bd599f84d90d13ef4d86">receiveMessage()</a>, <a class="el" href="comsock_8c.html#aa4a2380316658b900ce7086466887c4f">sendMessage()</a>, and <a class="el" href="structmessage__t.html#a2088bcda29404ae1e84f99388bee473f">message_t::type</a>.</p>

</div>
</div>
<a class="anchor" id="aa21e38cecec86e6cbfa136c13fae2155"></a><!-- doxytag: member="testserv.c::printMessage" ref="aa21e38cecec86e6cbfa136c13fae2155" args="(message_t *msg)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="testserv_8c.html#aa21e38cecec86e6cbfa136c13fae2155">printMessage</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structmessage__t.html">message_t</a> *&#160;</td>
          <td class="paramname"><em>msg</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>stampa il messaggio in formato tipo : stringa nel buffer <br/>
</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">msg</td><td>puntatore al messaggio da stampare </td></tr>
  </table>
  </dd>
</dl>

<p>References <a class="el" href="structmessage__t.html#a670e35a55f39260aab8a626b6ba04e82">message_t::buffer</a>, <a class="el" href="structmessage__t.html#ae42a6394ce558e3e54470afd3862d9db">message_t::length</a>, and <a class="el" href="structmessage__t.html#a2088bcda29404ae1e84f99388bee473f">message_t::type</a>.</p>

<p>Referenced by <a class="el" href="testserv_8c.html#a3c04138a5bfe5d72780bb7e82a18e627">main()</a>.</p>

</div>
</div>
</div><!-- contents -->


<hr class="footer"/><address class="footer"><small>
Generated on Fri Jun 29 2012 10:36:44 for BIBLIO by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
